151. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2024-03-04 14:38:51 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

151.1 Files compared

#LocationFileLast Modified
1/Users/coca/Documents/www/Porto v4.0.2/Theme Files/Magento 2.x/Porto Theme v4.0.7/app/design/frontend/Smartwave/porto/Smartwave_Filterproducts/templates/widgetgrid.phtml2023-07-12 04:05:32 +0000
2/Users/coca/Documents/www/Porto v4.0.2/Theme Files/Magento 2.x/Porto Theme v4.0.8/app/design/frontend/Smartwave/porto/Smartwave_Filterproducts/templates/widgetgrid.phtml2024-03-02 11:19:13 +0000

151.2 Comparison summary

DescriptionBetween
Files 1 and 2
Text BlocksLines
Unchanged19882
Changed9260
Inserted984
Removed00

151.3 Comparison options

WhitespaceConsecutive whitespace is treated as a single space
Character caseDifferences in character case are significant
Line endingsDifferences in line endings (CR and LF characters) are ignored
CR/LF charactersNot shown in the comparison detail
Active line-pairing rules

151.4 Active regular expressions

No regular expressions were active.

151.5 Comparison detail

1 <?php 1 <?php
2 /** 2 /**
3  * Copyright © 2015 Magento. All rights reserved. 3  * Copyright © 2015 Magento. All rights reserved.
4  * See COPYING.txt for license details. 4  * See COPYING.txt for license details.
5  */ 5  */
6 use Magento\Framework\App\Action\Action; 6 use Magento\Framework\App\Action\Action;
7  7 
8 // @codingStandardsIgnoreFile 8 // @codingStandardsIgnoreFile
9 ?> 9 ?>
10 <?php 10 <?php
11 /** 11 /**
12  * Product list template 12  * Product list template
13  * 13  *
14  * @var $block \Smartwave\Filterproducts\Block\ 14  * @var $block \Smartwave\Filterproducts\Block\
15  */ 15  */
16 ?> 16 ?>
17 <?php 17 <?php
18 if ($exist = ($block->getProductCollection() && $block->getProductCollection()->getSize())) { 18 if ($exist = ($block->getProductCollection() && $block->getProductCollection()->getSize())) {
19   $_productCollection = $block->getProductCollection()->getItems(); 19   $_productCollection = $block->getProductCollection()->getItems();
20   $_helper = $this->helper('Magento\Catalog\Helper\Output'); 20   $_helper = $this->helper('Magento\Catalog\Helper\Output');
21   $_imagehelper = $this->helper('Magento\Catalog\Helper\Image'); 21   $_imagehelper = $this->helper('Magento\Catalog\Helper\Image');
22   $_portohelper = $this->helper('Smartwave\Porto\Helper\Data'); 22   $_portohelper = $this->helper('Smartwave\Porto\Helper\Data');
23   $_category_config = $_portohelper->getConfig('porto_settings/category'); 23   $_category_config = $_portohelper->getConfig('porto_settings/category');
24   $_category_grid_config = $_portohelper->getConfig('porto_settings/category_grid'); 24   $_category_grid_config = $_portohelper->getConfig('porto_settings/category_grid');
25   $_product_label_config = $this->helper('Smartwave\Porto\Helper\Data')->getConfig('porto_settings/product_label'); 25   $_product_label_config = $this->helper('Smartwave\Porto\Helper\Data')->getConfig('porto_settings/product_label');
    26 
    27   $_content_pos1 = $this->getData("product_content_pos1") ? $this->getData("product_content_pos1") : 'left';
    28   $_button_pos = $this->getData("product_button_pos") ? $this->getData("product_button_pos") : 'top';
    29   $_button_action = $this->getData("product_button_action") ? $this->getData("product_button_action") : 'top';
    30   $_icon_only1 = $this->getData("product_icon_only1") ? $this->getData("product_icon_only1") : '0';
    31   $_icon_only2 = $this->getData("product_icon_only2") ? $this->getData("product_icon_only2") : '0';
    32   $_block_pos = $this->getData("product_block_pos") ? $this->getData("product_block_pos") : 'default';
    33   $_quantity_pos = $this->getData("product_quantity_pos") ? $this->getData("product_quantity_pos") : 'below';
    34   $_content_pos2 = $this->getData("product_content_pos2") ? $this->getData("product_content_pos2") : 'default';
    35   $_content_pos3 = $this->getData("product_content_pos3") ? $this->getData("product_content_pos3") : 'left';
    36   $_link_pos = $this->getData("product_link_pos") ? $this->getData("product_link_pos") : 'default';
    37   $_box_style = $this->getData("product_box_style") ? $this->getData("product_box_style") : 'box_shadow';
    38 
26   // Daily deal Helper 39   // Daily deal Helper
27   $_dailydealhelper =$this->helper('Smartwave\Dailydeals\Helper\Data'); 40   $_dailydealhelper =$this->helper('Smartwave\Dailydeals\Helper\Data');
28  41 
29   $_lazyload = $this->getData("lazyload"); 42   $_lazyload = $this->getData("lazyload");
30   if($_lazyload == null) { 43   if($_lazyload == null) {
31       $_lazyload = $this->helper('Smartwave\Porto\Helper\Data')->getConfig('porto_settings/optimization/lazyload'); 44       $_lazyload = $this->helper('Smartwave\Porto\Helper\Data')->getConfig('porto_settings/optimization/lazyload');
32   } 45   }
33  46 
34   $aspect_ratio = $this->getData("aspect_ratio"); 47   $aspect_ratio = $this->getData("aspect_ratio");
35   if($aspect_ratio == null) { 48   if($aspect_ratio == null) {
36       $aspect_ratio = $_category_config['aspect_ratio']; 49       $aspect_ratio = $_category_config['aspect_ratio'];
37   } 50   }
38   $image_width = $this->getData("image_width"); 51   $image_width = $this->getData("image_width");
39   if(!$image_width) { 52   if(!$image_width) {
40       $image_width = ($_category_config['ratio_width'])?$_category_config['ratio_width']:300; 53       $image_width = ($_category_config['ratio_width'])?$_category_config['ratio_width']:300;
41   } 54   }
42   $image_height = $this->getData("image_height"); 55   $image_height = $this->getData("image_height");
43   if($aspect_ratio) 56   if($aspect_ratio)
44       $image_height = $image_width; 57       $image_height = $image_width;
45   if(!$image_height) { 58   if(!$image_height) {
46       $image_height = ($_category_config['ratio_height'])?$_category_config['ratio_height']:300; 59       $image_height = ($_category_config['ratio_height'])?$_category_config['ratio_height']:300;
47   } 60   }
48   $column_count = $this->getData("column_count"); 61   $column_count = $this->getData("column_count");
49   if($column_count == null) { 62   if($column_count == null) {
50       $column_count = 4; 63       $column_count = 4;
51   } 64   }
52   $product_type = $this->getData("product_type"); 65   $product_type = $this->getData("product_type");
53   if($product_type == null) { 66   if($product_type == null) {
54       $product_type = $_category_grid_config['product_type']; 67       $product_type = $_category_grid_config['product_type'];
55   } 68   }
56   if($product_type == null) { 69   if($product_type == null) {
57       $product_type = 1; 70       $product_type = 1;
58   } 71   }
59 } 72 }
60 ?> 73 ?>
61 <?php if (!$exist): ?> 74 <?php if (!$exist): ?>
62     <div class="message info empty"><div><?php echo __('We can\'t find products matching the selection.') ?></div></div> 75     <div class="message info empty"><div><?php echo __('We can\'t find products matching the selection.') ?></div></div>
63 <?php else: ?> 76 <?php else: ?>
64     <?php 77     <?php
65     $viewMode = 'grid'; 78     $viewMode = 'grid';
66     $image = 'category_page_grid'; 79     $image = 'category_page_grid';
67     $hover_image = 'category_page_grid-hover'; 80     $hover_image = 'category_page_grid-hover';
68     $showDescription = false; 81     $showDescription = false;
69     $templateType = \Magento\Catalog\Block\Product\ReviewRendererInterface::SHORT_VIEW; 82     $templateType = \Magento\Catalog\Block\Product\ReviewRendererInterface::SHORT_VIEW;
70     ?> 83     ?>
71     <div class="products wrapper <?php echo $viewMode; ?> columns<?php echo $column_count; ?> products-<?php echo $viewMode; ?> <?php if($product_type == 2): ?>no-padding divider-line<?php endif; ?> <?php if($product_type == 5 || $product_type == 6 || $product_type == 7 || $product_type == 8): ?>no-padding<?php endif; ?> <?php if($product_type == 6): ?>divider-line<?php endif; ?>"> 84     <div class="products wrapper <?php echo $viewMode; ?> columns<?php echo $column_count; ?> products-<?php echo $viewMode; ?> <?php if($product_type == 2): ?>no-padding divider-line<?php endif; ?> <?php if($product_type == 5 || $product_type == 6 || $product_type == 7 || $product_type == 8): ?>no-padding<?php endif; ?> <?php if($product_type == 6): ?>divider-line<?php endif; ?>">
72         <?php $iterator = 1; ?> 85         <?php $iterator = 1; ?>
73         <ol class="filterproducts products list items product-items"> 86         <ol class="filterproducts products list items product-items">
74             <?php /** @var $_product \Magento\Catalog\Model\Product */ ?> 87             <?php /** @var $_product \Magento\Catalog\Model\Product */ ?>
75             <?php foreach ($_productCollection as $_product): ?> 88             <?php foreach ($_productCollection as $_product): ?>
76                 <?php echo($iterator++ == 1) ? '<li class="item product product-item">' : '</li><li class="item product product-item">' ?> 89                 <?php echo($iterator++ == 1) ? '<li class="item product product-item">' : '</li><li class="item product product-item">' ?>
77                 <div class="product-item-info type<?php echo $product_type; ?>
" data-container="product-grid">
 90                 <?php
78                     <?php // Product Image ?> 91                   $newType = array("13", "14", "15", "16", "17", "18", "19", "20");
79                     <div class="product photo product-item-photo"> 92                   $_type_class = '';
    93                   $_content_pos1 = '';
    94                   if(in_array($product_type, $newType)) {
    95                     $_content_pos1 = ' text-'.$_content_pos1;
    96                     $_type_class = ' product-type-advanced';
    97                     if($product_type == '15'){
    98                       $_type_class = ' product-type-advanced effect-ovdefault';
    99                       if($_button_action == 'top'){
    100                         $_content_pos1 = ' text-center';
    101                       }
    102                       if($_button_action == 'hide'){
    103                         $_content_pos1 = ' text-center hide-actions';
    104                       }
    105                     }
    106                     if($product_type == '16'){
    107                       $_type_class = ' product-type-advanced effect-hddf'.' box-'.$_block_pos;
    108                       $_content_pos1 = ' text-'.$_content_pos3;
    109                     }
    110                     if($product_type == '18'){
    111                       $_type_class = ' product-type-advanced effect-detailimg';
    112                       $_content_pos1 = ' text-left';
    113                       if($_content_pos2 == 'top'){
    114                         $_type_class = ' product-type-advanced effect-detailimg actions-bottom';
    115                       }
    116                       if($_content_pos2 == 'center'){
    117                         $_content_pos1 = ' text-center';
    118                         $_type_class = ' product-type-advanced effect-detailimg actions-center';
    119                       }
    120                       if($_content_pos2 == 'bottom'){
    121                         $_type_class = ' product-type-advanced effect-detailimg actions-top';
    122                       }
    123                     }
    124                     if($product_type == '19'){
    125                       $_type_class = ' product-type-advanced effect-cartlink';
    126                       if($_link_pos == 'image') {
    127                         $_type_class = ' product-type-advanced effect-cartlink cartlink-image';
    128                       }
    129                       $_content_pos1 = ' text-left';
    130                     }
    131                     if($product_type == '20'){
    132                       $_content_pos1 = ' text-center';
    133                       if($_box_style == 'box_shadow') {
    134                         $_type_class .= ' product-type-advanced effect-bheshadow';
    135                       }
    136                       if($_box_style == 'box_full') {
    137                         $_type_class .= ' product-type-advanced effect-bhesfd';
    138                         $_content_pos1 = ' text-left';
    139                       }
    140                       if($_box_style == 'box_border') {
    141                         $_type_class .= ' product-type-advanced effect-bheborder';
    142                       }
    143                       if($_box_style == 'box_border_padding') {
    144                         $_type_class .= ' product-type-advanced effect-bhebrspace';
    145                       }
    146                     }
    147                   }
    148                 ?>
    149                 <div class="product-item-info type<?php echo $product_type; ?><?= $_content_pos1;?> porto-tb-item type-product has-post-thumbnail product-type-simple" data-container="product-grid">
    150                   <div class="porto-section<?=$_type_class?> p-0">
    151                     <?php if($product_type == '20' && $_box_style == 'box_full'):?><div class="content-shadow"></div><?php endif;?>
    152                     <div class="product photo product-item-photo<?php if(in_array($product_type, $newType)):?> porto-tb-featured-image tb-image-type-hover<?php endif;?> product-image">
    153                       <div class="porto-tb-featured-image tb-image-type-hover">
80                         <a href="<?php echo $_product->getProductUrl() ?>" tabindex="-1"> 154                         <a href="<?php echo $_product->getProductUrl() ?>" tabindex="-1">
81                         <?php 155                         <?php
82                             if($aspect_ratio) 156                             if($aspect_ratio)
83                                 $productImage = $_imagehelper->init($_product, $image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width); 157                                 $productImage = $_imagehelper->init($_product, $image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width);
84                             else 158                             else
85                                 $productImage = $_imagehelper->init($_product, $image)->resize($image_width, $image_height); 159                                 $productImage = $_imagehelper->init($_product, $image)->resize($image_width, $image_height);
86                             $productImageUrl = $productImage->getUrl(); 160                             $productImageUrl = $productImage->getUrl();
87                         ?> 161                         ?>
88                             <img class="product-image-photo default_image <?php if(!$_lazyload): ?>porto-lazyload<?php endif;?>" <?php if(!$_lazyload): ?>data-<?php endif; ?>src="<?php echo $productImageUrl; ?>" width="<?php echo $image_width; ?>" height="<?php echo $image_height; ?>" alt="<?php //echo $productImage->getLabel();?>"/> 162                             <img class="product-image-photo default_image <?php if(!$_lazyload): ?>porto-lazyload<?php endif;?>" <?php if(!$_lazyload): ?>data-<?php endif; ?>src="<?php echo $productImageUrl; ?>" width="<?php echo $image_width; ?>" height="<?php echo $image_height; ?>" alt="<?php //echo $productImage->getLabel();?>"/>
89                         <?php if($_category_config['alternative_image']): ?> 163                         <?php if($_category_config['alternative_image']): ?>
90                         <?php 164                         <?php
91                             if($aspect_ratio) 165                             if($aspect_ratio)
92                                 $productHoverImage = $_imagehelper->init($_product, $hover_image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width); 166                                 $productHoverImage = $_imagehelper->init($_product, $hover_image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width);
93                             else 167                             else
94                                 $productHoverImage = $_imagehelper->init($_product, $hover_image)->resize($image_width, $image_height); 168                                 $productHoverImage = $_imagehelper->init($_product, $hover_image)->resize($image_width, $image_height);
95                             $productHoverImageUrl = $productHoverImage->getUrl(); 169                             $productHoverImageUrl = $productHoverImage->getUrl();
96                         ?> 170                         ?>
97                             <?php if($productImageUrl != str_replace("/thumbnail/","/small_image/",$productHoverImageUrl)): ?> 171                             <?php if($productImageUrl != str_replace("/thumbnail/","/small_image/",$productHoverImageUrl)): ?>
98                             <img class="product-image-photo hover_image" src="<?php echo $productHoverImageUrl; ?>" alt="<?php //echo $productHoverImage->getLabel();?>"/> 172                             <img class="product-image-photo hover_image" src="<?php echo $productHoverImageUrl; ?>" alt="<?php //echo $productHoverImage->getLabel();?>"/>
99                             <?php endif; ?> 173                             <?php endif; ?>
100                         <?php endif; ?> 174                         <?php endif; ?>
101                         </a> 175                         </a>
102                         <?php 176                         <?php
103                             $product_label = ""; 177                             $product_label = "";
104                             if($_product_label_config['sale_label']) { 178                             if($_product_label_config['sale_label']) {
105                                 if ($percentage = $_portohelper->getPercentage($_product)) { 179                                 if ($percentage = $_portohelper->getPercentage($_product)) {
106                                     if($_product_label_config['sale_label_percent']) { 180                                     if($_product_label_config['sale_label_percent']) {
107                                         $product_label .= '<div class="product-label sale-label">'.$percentage.'%'.'</div>'; 181                                         $product_label .= '<div class="product-label sale-label">'.$percentage.'%'.'</div>';
108                                     } else { 182                                     } else {
109                                         $product_label .= '<div class="product-label sale-label">'.$_product_label_config['sale_label_text'].'</div>'; 183                                         $product_label .= '<div class="product-label sale-label">'.$_product_label_config['sale_label_text'].'</div>';
110                                     } 184                                     }
111                                 } 185                                 }
112                             } 186                             }
113                             if($_product_label_config['new_label']) { 187                             if($_product_label_config['new_label']) {
114                                 $now = date("Y-m-d"); 188                                 $now = date("Y-m-d");
115                                 $newsFrom= substr($_product->getData('news_from_date')?$_product->getData('news_from_date'):'',0,10); 189                                 $newsFrom= substr($_product->getData('news_from_date')?$_product->getData('news_from_date'):'',0,10);
116                                 $newsTo=  substr($_product->getData('news_to_date')?$_product->getData('news_to_date'):'',0,10); 190                                 $newsTo=  substr($_product->getData('news_to_date')?$_product->getData('news_to_date'):'',0,10);
117  191 
118                                 if ($newsTo != '' || $newsFrom != ''){ 192                                 if ($newsTo != '' || $newsFrom != ''){
119                                     if (($newsTo != '' && $newsFrom != '' && $now>=$newsFrom && $now<=$newsTo) || ($newsTo == '' && $now >=$newsFrom) || ($newsFrom == '' && $now<=$newsTo)) { 193                                     if (($newsTo != '' && $newsFrom != '' && $now>=$newsFrom && $now<=$newsTo) || ($newsTo == '' && $now >=$newsFrom) || ($newsFrom == '' && $now<=$newsTo)) {
120                                         $product_label .= '<div class="product-label new-label">'.$_product_label_config['new_label_text'].'</div>'; 194                                         $product_label .= '<div class="product-label new-label">'.$_product_label_config['new_label_text'].'</div>';
121                                     } 195                                     }
122                                 } 196                                 }
123                             } 197                             }
124                             if($product_label) 198                             if($product_label)
125                                 echo '<div class="product-labels">'.$product_label.'</div>'; 199                                 echo '<div class="product-labels">'.$product_label.'</div>';
126                         ?> 200                         ?>
127                         <?php if($product_type == 3 || $product_type == 5 || 
$product_type == 6 || $product_type == 7 || $product_type == 8 || $product_type == 9 || $product_type == 11): ?>
 201                         <?php
128                         <div class="product-item-inner"> 202                         $_show_actions_top = false;
129                             <div class="product actions product-item-actions"> 203                         $_product_inner_class = '';
    204                         if(in_array($product_type, ['3','5','6','7','8','9','11','13','14','15','16','17','18','19','20'])) {
    205                           $_show_actions_top = true;
    206                           if($product_type == 14 && $_button_pos == 'outside'){
    207                             $_show_actions_top = false;
    208                           }
    209                           if($product_type >= 13){
    210                             $_product_inner_class = ' tb-hover-content with-link';
    211                           }
    212 
    213                           
if($product_type == 13 || ($product_type == 15 && $_button_action == 'top') || $product_type == 16 || $product_type == 17 || $product_type == 19)
 {
    214                             $_product_inner_class .= ' css-bottom-iconcart icon-absolute';
    215                           }
    216                           if($product_type == 14 && $_icon_only1){
    217                             $_product_inner_class .= ' show-cart-icon';
    218                           }
    219                           if($product_type == 14 && $_button_pos != 'outside'){
    220                             $_product_inner_class .= ' button-pos-'.$_button_pos;
    221                           }
    222                           if($product_type == 15 && $_icon_only2 && $_button_action != 'top'){
    223                             $_product_inner_class .= ' show-cart-icon';
    224                           }
    225                           if($product_type == 15 && $_button_action != 'top') {
    226                             $_product_inner_class .= ' button-pos-center';
    227                           }
    228                           if($product_type == 18) {
    229                             $_product_inner_class .= ' icon-absolute show-cart-icon';
    230                           }
    231                           if($product_type == 20 && $_box_style != 'box_full') {
    232                             $_product_inner_class .= ' css-bottom-iconcart icon-absolute';
    233                           }
    234                           if($product_type == 20 && $_box_style == 'box_full'){
    235                             $_show_actions_top = false;
    236                           }
    237                         }
    238                         if($_show_actions_top): ?>
    239                         <div class="product-item-inner<?= $_product_inner_class;?>">
    240                           <?php if(in_array($product_type, $newType)):?>
    241                           <a aria-label="post content" href="<?php echo $_product->getProductUrl() ?>" class="porto-tb-link"></a>
    242                           <?php endif;?>
    243                           <?php if($product_type == 15 || $product_type == 16 || $product_type == 18):?>
    244                             <?php if(($product_type == 15 && $_button_action == 'center') || ($product_type == 18 && $_content_pos2 == 'default') || ($product_type == 18 && $_content_pos2 == 'center')):?>
    245                             <div class="porto-section content-top">
    246                               <?php $_productNameStripped =  $block->stripTags($_product->getName(), null, true); ?>
    247                               <strong class="product name product-item-name">
    248                                   <a class="product-item-link"
    249                                      href="<?php echo $_product->getProductUrl() ?>">
    250                                       <?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?>
    251                                   </a>
    252                               </strong>
    253                               <?php if($_category_config['rating_star']): ?>
    254                               <?php
    255                                   $review_html = $block->getReviewsSummaryHtml($_product, $templateType);
    256                               ?>
    257                               <?php if($review_html): ?>
    258                                   <?php echo $block->getReviewsSummaryHtml($_product, $templateType); ?>
    259                               <?php else: ?>
    260                               <div class="product-reviews-summary short">
    261                                   <div class="rating-summary">
    262                                       <span class="label"><span>Rating:</span></span>
    263                                       <div class="rating-result" title="0%">
    264                                           <span style="width:0"><span>0%</span></span>
    265                                       </div>
    266                                   </div>
    267                               </div>
    268                               <?php endif; ?>
    269                               <?php endif; ?>
    270                             </div>
    271                             <?php endif; ?>
    272                             <div class="product details product-item-details porto-section<?php if($_button_action == 'top' || $_button_action == 'hide' || $product_type == 16):?> product-content<?php endif;?><?php if($product_type == 15 && $_button_action == 'center'):?> content-bottom<?php endif;?><?php if($product_type == 16 && $_block_pos == 'full'):?> d-flex justify-content-center flex-column<?php endif;?>">
    273                               <?php if($_button_action == 'top' || $_button_action == 'hide' || $product_type == 16  || ($product_type == 18 && $_content_pos2 == 'top')  || ($product_type == 18 && $_content_pos2 == 'bottom')):?>
    274                               <?php $_productNameStripped = $block->stripTags($_product->getName(), null, true); ?>
    275                               <strong class="product name product-item-name">
    276                                   <a class="product-item-link"
    277                                      href="<?php echo $_product->getProductUrl() ?>">
    278                                       <?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?>
    279                                   </a>
    280                               </strong>
    281                               <?php if($_category_config['rating_star']): ?>
    282                               <?php
    283                                   $review_html = $block->getReviewsSummaryHtml($_product, $templateType);
    284                               ?>
    285                               <?php if($review_html): ?>
    286                                   <?php echo $block->getReviewsSummaryHtml($_product, $templateType); ?>
    287                               <?php else: ?>
    288                               <div class="product-reviews-summary short">
    289                                   <div class="rating-summary">
    290                                       <span class="label"><span>Rating:</span></span>
    291                                       <div class="rating-result" title="0%">
    292                                           <span style="width:0"><span>0%</span></span>
    293                                       </div>
    294                                   </div>
    295                               </div>
    296                               <?php endif; ?>
    297                               <?php endif; ?>
    298                               <?php endif;?>
    299 
    300                               <?php if($_category_config['product_price']): ?>
    301                               <?php echo $block->getProductPrice($_product) ?>
    302                               <?php endif; ?>
    303                               <?php echo $block->getProductDetailsHtml($_product); ?>
    304                               <?php if($product_type == 16):?>
130                                 <div class="actions-primary"> 305                                 <div class="actions-primary">
131                                     <?php if ($_product->isSaleable()): ?> 306                                     <?php if ($_product->isSaleable()): ?>
132                                         <?php $postParams = $block->getAddToCartPostParams($_product); ?> 307                                       <?php $postParams = $block->getAddToCartPostParams($_product); ?>
133                                         <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post"> 308                                       <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post">
134                                             <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>"> 309                                           <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>">
135                                             <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>"> 310                                           <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>">
136                                             <?php echo $block->getBlockHtml('formkey')?> 311                                           <?php echo $block->getBlockHtml('formkey')?>
137                                             <button type="submit" 312                                           <button type="submit"
138                                                     title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>" 313                                                   title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>"
139                                                     class="action tocart primary"> 314                                                   class="action tocart primary">
140                                                 <span><?php echo __('Add to Cart') ?></span> 315                                               <span><?php echo __('Add to Cart') ?></span>
141                                             </button> 316                                           </button>
142                                         </form> 317                                       </form>
143                                     <?php else: ?> 318                                   <?php else: ?>
144                                         <?php if ($_product->getIsSalable()): ?> 319                                       <?php if ($_product->getIsSalable()): ?>
145                                             <div class="stock available"><span><?php echo __('In stock') ?></span></div> 320                                           <div class="stock available"><span><?php echo __('In stock') ?></span></div>
146                                         <?php else: ?> 321                                       <?php else: ?>
147                                             <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div> 322                                           <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div>
148                                         <?php endif; ?> 323                                       <?php endif; ?>
149                                     <?php endif; ?> 324                                   <?php endif; ?>
150                                 </div> 325                                 </div>
    326                               <?php endif;?>
    327                             </div>
    328                           <?php endif; ?>
    329                           <div class="product actions product-item-actions<?php if($product_type == 14 || ($product_type == 15 && $_button_action != 'top') || $product_type == 16 || $product_type == 17):?> d-flex align-items-center justify-content-center<?php endif;?><?php if($product_type == 17 && $_quantity_pos == 'image_center'):?> actions-center<?php endif;?>">
    330                             <?php
    331                               $c_show_cart = false;
    332                               if($product_type != 16){
    333                                 $c_show_cart = true;
    334                               }
    335                               if($product_type == 17 && ($_quantity_pos =='below' || $_quantity_pos =='above')) {
    336                                 $c_show_cart = false;
    337                               }
    338                               if($product_type == 19 && $_link_pos != 'image') {
    339                                 $c_show_cart = false;
    340                               }
    341                             ?>
    342                             <?php if($c_show_cart):?>
    343                             <div class="actions-primary">
    344                                 <?php if ($_product->isSaleable()): ?>
    345                                     <?php $postParams = $block->getAddToCartPostParams($_product); ?>
    346                                     <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post"  class="d-flex flex-column flex-sm-row">
    347                                         <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>">
    348                                         <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>">
    349                                         <?php echo $block->getBlockHtml('formkey')?>
    350                                         <?php if($product_type == 17 && ($_quantity_pos == 'image_bottom' || $_quantity_pos == 'image_center')):?>
    351                                             <div class="qty-box">
    352                                                 <a href="javascript:void(0)" class="qtyminus"><i class="porto-icon-minus"></i></a>
    353                                                 <input type="text" name="qty" id="qty" maxlength="12" value="<?php echo ($this->getMinimalQty($_product)?$this->getMinimalQty($_product):1) ?>" title="<?php /* @escapeNotVerified */ echo __('Qty') ?>" class="input-text qty" data-validate="<?php echo $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"/>
    354                                                 <a href="javascript:void(0)" class="qtyplus"><i class="porto-icon-plus"></i></a>
    355                                             </div>
    356                                         <?php endif;?>
    357                                         <button type="submit"
    358                                                 title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>"
    359                                                 class="action tocart primary">
    360                                             <span><?php echo __('Add to Cart') ?></span>
    361                                         </button>
    362                                     </form>
    363                                 <?php else: ?>
    364                                     <?php if ($_product->getIsSalable()): ?>
    365                                         <div class="stock available"><span><?php echo __('In stock') ?></span></div>
    366                                     <?php else: ?>
    367                                         <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div>
    368                                     <?php endif; ?>
    369                                 <?php endif; ?>
    370                             </div>
    371                             <?php endif; ?>
151                                 <?php if ($block->getMode() == 'grid'): ?> 372                             <?php if ($block->getMode() == 'grid'): ?>
152                                 <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> 373                             <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?>
153                                     <a href="#" 374                                 <a href="#"
154                                        class="action towishlist actions-secondary" 375                                    class="action towishlist actions-secondary"
155                                        title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 376                                    title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
156                                        aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 377                                    aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
157                                        data-post='<?php echo $block->getAddToWishlistParams($_product); ?>' 378                                    data-post='<?php echo $block->getAddToWishlistParams($_product); ?>'
158                                        data-action="add-to-wishlist" 379                                    data-action="add-to-wishlist"
159                                        role="button"> 380                                    role="button">
160                                         <span><?php echo __('Add to Wish List') ?></span> 381                                     <span><?php echo __('Add to Wish List') ?></span>
161                                     </a> 382                                 </a>
162                                 <?php endif; ?> 383                             <?php endif; ?>
163                                 <?php endif; ?> 384                             <?php endif; ?>
164                                 <?php if($_category_config['addtocompare']): ?> 385                             <?php if($_category_config['addtocompare']): ?>
165                                 <?php 386                             <?php
166                                 $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare'); 387                             $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare');
167                                 ?> 388                             ?>
168                                 <a href="#" 389                             <a href="#"
169                                    class="action tocompare actions-secondary" 390                                class="action tocompare actions-secondary"
170                                    title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 391                                title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
171                                    aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 392                                aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
172                                    data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>' 393                                data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>'
173                                    role="button"> 394                                role="button">
174                                     <span><?php echo __('Add to Compare') ?></span> 395                                 <span><?php echo __('Add to Compare') ?></span>
175                                 </a> 396                             </a>
176                                 <?php endif; ?> 397                             <?php endif; ?>
177                             </div> 398                           </div>
178                         </div> 399                         </div>
179                         <?php endif; ?> 400                         <?php endif; ?>
    401                         <?php if($product_type != 13 && $product_type != 14 && $product_type != 17 && $product_type != 18 && $product_type != 20): ?>
180                         <!-- Dailydeal Product data --> 402                         <!-- Dailydeal Product data -->
181                         <?php if($_dailydealhelper->isDealProduct($_product->getId())) : ?> 403                         <?php if($_dailydealhelper->isDealProduct($_product->getId())) : ?>
182                         <?php $unique_id = $this->getData("name")."_".rtrim(base64_encode(md5(microtime())),"="); ?> 404                         <?php $unique_id = $this->getData("name")."_".rtrim(base64_encode(md5(microtime())),"="); ?>
183                         <input type="hidden" id="todate_<?php echo $unique_id; ?>" value="<?php echo $_dailydealhelper->getDailydealToDate($_product->getSku()); ?>" > 405                         <input type="hidden" id="todate_<?php echo $unique_id; ?>" value="<?php echo $_dailydealhelper->getDailydealToDate($_product->getSku()); ?>" >
184                         <input type="hidden" id="fromdate_<?php echo $unique_id; ?>" value="<?php echo $_dailydealhelper->getDailydealFromDate($_product->getSku()); ?>"> 406                         <input type="hidden" id="fromdate_<?php echo $unique_id; ?>" value="<?php echo $_dailydealhelper->getDailydealFromDate($_product->getSku()); ?>">
185                         <div class="sw-dailydeal-wrapper" style="display:none;" data-unique-id="<?php echo $unique_id; ?>"> 407                         <div class="sw-dailydeal-wrapper" style="display:none;" data-unique-id="<?php echo $unique_id; ?>">
186                             <div class="sw-dailydeal"> 408                             <div class="sw-dailydeal">
187                                 <p id="expired_<?php echo $unique_id; ?>"></p> 409                                 <p id="expired_<?php echo $unique_id; ?>"></p>
188                                 <div class="countdowncontainer countdowncontainer_<?php echo $unique_id; ?>" style="display:none;"> 410                                 <div class="countdowncontainer countdowncontainer_<?php echo $unique_id; ?>" style="display:none;">
189                                     <span class="dailydeal-label"> 411                                     <span class="dailydeal-label">
190                                         <?php echo __('Ends In:'); ?> 412                                         <?php echo __('Ends In:'); ?>
191                                     </span> 413                                     </span>
192                                     <span class="number-wrapper"> 414                                     <span class="number-wrapper">
193                                         <div class="line"></div> 415                                         <div class="line"></div>
194                                         <span class="number day"><p id="countdown_days_<?php echo $unique_id; ?>">00</p></span> 416                                         <span class="number day"><p id="countdown_days_<?php echo $unique_id; ?>">00</p></span>
195                                         <div class="caption"><?php echo __('Day(s), '); ?></div> 417                                         <div class="caption"><?php echo __('Day(s), '); ?></div>
196                                     </span> 418                                     </span>
197  419 
198                                     <span class="number-wrapper"> 420                                     <span class="number-wrapper">
199                                         <div class="line"></div> 421                                         <div class="line"></div>
200                                         <span class="number hour"><p id="countdown_hours_<?php echo $unique_id; ?>">00</p></span> 422                                         <span class="number hour"><p id="countdown_hours_<?php echo $unique_id; ?>">00</p></span>
201                                         <div class="caption">:</div> 423                                         <div class="caption">:</div>
202                                     </span> 424                                     </span>
203  425 
204                                     <span class="number-wrapper"> 426                                     <span class="number-wrapper">
205                                         <div class="line"></div> 427                                         <div class="line"></div>
206                                         <span class="number min"><p id="countdown_minutes_<?php echo $unique_id; ?>">00</p></span> 428                                         <span class="number min"><p id="countdown_minutes_<?php echo $unique_id; ?>">00</p></span>
207                                         <div class="caption">:</div> 429                                         <div class="caption">:</div>
208                                     </span> 430                                     </span>
209  431 
210                                     <span class="number-wrapper"> 432                                     <span class="number-wrapper">
211                                         <div class="line"></div> 433                                         <div class="line"></div>
212                                         <span class="number sec"><p id="countdown_seconds_<?php echo $unique_id; ?>">00</p></span> 434                                         <span class="number sec"><p id="countdown_seconds_<?php echo $unique_id; ?>">00</p></span>
213                                         <div class="caption"></div> 435                                         <div class="caption"></div>
214                                     </span> 436                                     </span>
215                                 </div> 437                                 </div>
216                             </div> 438                             </div>
217                         </div> 439                         </div>
218                         <?php endif; ?> 440                         <?php endif; ?>
219                         <!-- Dailydeal Product End --> 441                         <!-- Dailydeal Product End -->
    442                         <?php endif;?>
    443                       </div>
220                     </div> 444                     </div>
221                     <div class="product details product-item-details"> 445                     <?php if($product_type != '15' && $product_type != 16  && $product_type != '18'): ?>
    446                     <div class="product details product-item-details porto-section product-content<?php if($product_type == '17' && $_quantity_pos =='above'):?> qty-above d-flex flex-column align-items-center<?php endif;?><?php if($product_type == '19' && ($_link_pos == 'top' || $_link_pos == 'hidden')){?> show-cartlink-top<?php }?>">
    447                       <?php if($product_type == '13' || $product_type == '14' || $product_type == '17' || $product_type == '20'): ?>
    448                         <!-- Dailydeal Product data -->
    449                         <?php if($_dailydealhelper->isDealProduct($_product->getId())) : ?>
    450                         <?php $unique_id = rtrim(base64_encode(md5(microtime())),"="); ?>
    451                         <input type="hidden" id="todate_<?php echo $unique_id; ?>" value="<?php echo $_dailydealhelper->getDailydealToDate($_product->getSku()); ?>" >
    452                         <input type="hidden" id="fromdate_<?php echo $unique_id; ?>" value="<?php echo $_dailydealhelper->getDailydealFromDate($_product->getSku()); ?>">
    453                         <div class="sw-dailydeal-wrapper product-type-countdown2" style="display:none;" data-unique-id="<?php echo $unique_id; ?>">
    454                             <div class="sw-dailydeal">
    455                                 <p id="expired_<?php echo $unique_id; ?>"></p>
    456                                 <div class="countdowncontainer countdowncontainer_<?php echo $unique_id; ?>" style="display:none;">
    457                                     <span class="number-wrapper">
    458                                       <div class="line"></div>
    459                                       <span class="number day"><p id="countdown_days_<?php echo $unique_id; ?>">00</p></span>
    460                                       <div class="caption"><?php echo __('Days'); ?></div>
    461                                     </span>
    462                                     <span class="number-wrapper">
    463                                       <div class="line"></div>
    464                                       <span class="number hour"><p id="countdown_hours_<?php echo $unique_id; ?>">00</p></span>
    465                                       <div class="caption"><?php echo __('Hours'); ?></div>
    466                                     </span>
    467                                     <span class="number-wrapper">
    468                                       <div class="line"></div>
    469                                       <span class="number min"><p id="countdown_minutes_<?php echo $unique_id; ?>">00</p></span>
    470                                       <div class="caption"><?php echo __('Min'); ?></div>
    471                                     </span>
    472                                     <span class="number-wrapper">
    473                                       <div class="line"></div>
    474                                       <span class="number sec"><p id="countdown_seconds_<?php echo $unique_id; ?>">00</p></span>
    475                                       <div class="caption"><?php echo __('Sec'); ?></div>
    476                                     </span>
    477                                 </div>
    478                             </div>
    479                         </div>
    480                         <?php endif; ?>
    481                         <!-- Dailydeal Product End -->
    482                       <?php endif;?>
222                         <?php 483                         <?php
223                             $_productNameStripped = $block->stripTags($_product->getName(), null, true); 484                             $_productNameStripped = $block->stripTags($_product->getName(), null, true);
224                         ?> 485                         ?>
    486                         <?php if($product_type == '13' || $product_type == '14' || $product_type == '19'  || $product_type == '20'): ?>
    487                           <?php echo $block->getProductDetailsHtml($_product); ?>
    488                         <?php endif;?>
225                         <strong class="product name product-item-name"> 489                         <strong class="product name product-item-name">
226                             <a class="product-item-link" 490                             <a class="product-item-link"
227                                href="<?php echo $_product->getProductUrl() ?>"> 491                                href="<?php echo $_product->getProductUrl() ?>">
228                                 <?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?> 492                                 <?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?>
229                             </a> 493                             </a>
230                         </strong> 494                         </strong>
231                         <?php //$_category_config['rating_star'] = "";  //disabled at the moment ?> 495                         <?php //$_category_config['rating_star'] = "";  //disabled at the moment ?>
232                         <?php if($_category_config['rating_star']): ?> 496                         <?php if($_category_config['rating_star']): ?>
233                         <?php 497                         <?php
234                             $review_html = $block->getReviewsSummaryHtml($_product, $templateType); 498                             $review_html = $block->getReviewsSummaryHtml($_product, $templateType);
235                         ?> 499                         ?>
236                         <?php if($review_html): ?> 500                         <?php if($review_html): ?>
237                             <?php echo $block->getReviewsSummaryHtml($_product, $templateType); ?> 501                             <?php echo $block->getReviewsSummaryHtml($_product, $templateType); ?>
238                         <?php else: ?> 502                         <?php else: ?>
239                         <div class="product-reviews-summary short"> 503                         <div class="product-reviews-summary short">
240                             <div class="rating-summary"> 504                             <div class="rating-summary">
241                                 <span class="label"><span>Rating:</span></span> 505                                 <span class="label"><span>Rating:</span></span>
242                                 <div class="rating-result" title="0%"> 506                                 <div class="rating-result" title="0%">
243                                     <span style="width:0"><span>0%</span></span> 507                                     <span style="width:0"><span>0%</span></span>
244                                 </div> 508                                 </div>
245                             </div> 509                             </div>
246                         </div> 510                         </div>
247                         <?php endif; ?> 511                         <?php endif; ?>
248                         <?php endif; ?> 512                         <?php endif; ?>
249  513 
250                         <?php if ($showDescription):?> 514                         <?php if ($showDescription):?>
251                             <div class="product description product-item-description"> 515                             <div class="product description product-item-description">
252                                 <?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?> 516                                 <?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
253                                 <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" 517                                 <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>"
254                                    class="action more"><?php echo __('Learn More') ?></a> 518                                    class="action more"><?php echo __('Learn More') ?></a>
255                             </div> 519                             </div>
256                         <?php endif; ?> 520                         <?php endif; ?>
257                         <?php if($_category_config['product_price']): ?> 521                         <?php if($_category_config['product_price']): ?>
258                         <?php echo $block->getProductPrice($_product) ?> 522                         <?php echo $block->getProductPrice($_product) ?>
259                         <?php endif; ?> 523                         <?php endif; ?>
    524                         <?php if($product_type != '13' && $product_type != '14' && $product_type != '19' && $product_type != '20'): ?>
260                         <?php echo $block->getProductDetailsHtml($_product); ?> 525                         <?php echo $block->getProductDetailsHtml($_product); ?>
    526                         <?php endif; ?>
261  527 
262                         <?php if($product_type != 3 && $product_type != 5 && $product_type != 6 && $product_type != 7 && $product_type != 8 && $product_type != 9 && $product_type != 11 && $product_type != 12): ?> 528                         <?php
263                         <div class="product-item-inner
">
 529                         $_product_show_actions = true;
264                             <div class="product actions product-item-actions"> 530                         $_product_details_inner_class = '';
    531                         if(in_array($product_type, ['3','5','6','7','8','9','11','13','14','17','19','20'])) {
    532                           $_product_show_actions = false;
    533                           if($product_type == '14' && $_button_pos =='outside'){
    534                             $_product_show_actions = true;
    535                             $_product_details_inner_class .= ' button-pos'.$_button_pos;
    536                           }
    537                           if($product_type == '14' && $_icon_only1 ) {
    538                             $_product_details_inner_class .= ' show-cart-icon';
    539                           }
    540                           if($product_type == '17' && ($_quantity_pos =='below' || $_quantity_pos =='above')){
    541                             $_product_show_actions = true;
    542                           }
    543                           if($product_type == '19' && ($_link_pos == 'default' || $_link_pos == 'top')){
    544                             $_product_show_actions = true;
    545                           }
    546                           if($product_type == '20' && $_box_style == 'box_full'){
    547                             $_product_show_actions = true;
    548                           }
    549                         }
    550                         if($_product_show_actions): ?>
    551                         <div class="product-item-inner<?=$_product_details_inner_class;?>">
    552                           <?php if($product_type == '20' && $_box_style == 'box_full'){?>
    553                             <div class="product description product-item-description">
    554                               <?php
    555                               $length = 118;
    556                               $shortContent = $_product->getShortDescription();
    557                               echo $shortContent = strip_tags((strlen($shortContent) > $length) ? substr($shortContent,0,$length).'...' : $shortContent);
    558                               ?>
    559                             </div>
    560                           <?php }?>
    561                           <div class="product actions product-item-actions<?php if(($product_type == '14' && $_button_pos == 'outside') || ($product_type == '20' && $_box_style == 'box_full')):?> d-flex align-items-center justify-content-center<?php endif;?>">
265                                 <?php if ($block->getMode() == 'grid'): ?> 562                               <?php if ($block->getMode() == 'grid'): ?>
266                                 <?php if($_category_config['addtowishlist'] && $product_type != 
4
): ?>
 563                               <?php if($_category_config['addtowishlist'] && $product_type != '4 && $product_type != '17' && $product_type != '19'): ?>
267                                 <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> 564                               <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?>
268                                     <a href="#" 565                                   <a href="#"
269                                        class="action towishlist actions-secondary" 566                                      class="action towishlist actions-secondary"
270                                        title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 567                                      title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
271                                        aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 568                                      aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
272                                        data-post='<?php echo $block->getAddToWishlistParams($_product); ?>' 569                                      data-post='<?php echo $block->getAddToWishlistParams($_product); ?>'
273                                        data-action="add-to-wishlist" 570                                      data-action="add-to-wishlist"
274                                        role="button"> 571                                      role="button">
275                                         <span><?php echo __('Add to Wish List') ?></span> 572                                       <span><?php echo __('Add to Wish List') ?></span>
276                                     </a> 573                                   </a>
277                                 <?php endif; ?> 574                               <?php endif; ?>
278                                 <?php endif; ?> 575                               <?php endif; ?>
279                                 <?php endif; ?> 576                               <?php endif; ?>
280                                 <div class="actions-primary"> 577                               <div class="actions-primary">
281                                     <?php if ($_product->isSaleable()): ?> 578                                   <?php if ($_product->isSaleable()): ?>
282                                         <?php $postParams = $block->getAddToCartPostParams($_product); ?> 579                                       <?php $postParams = $block->getAddToCartPostParams($_product); ?>
283                                         <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post"
>
 580                                       <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post"  class="d-flex flex-column flex-sm-row">
284                                             <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>"> 581                                           <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>">
285                                             <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>"> 582                                           <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>">
286                                             <?php if($product_type == 10
):?>
 583                                           <?php if($product_type == 10 || $product_type == 17):?>
287                                                 <div class="qty-box"> 584                                               <div class="qty-box">
288                                                     <a href="javascript:void(0)" class="qtyminus"><i class="porto-icon-minus"></i></a> 585                                                   <a href="javascript:void(0)" class="qtyminus"><i class="porto-icon-minus"></i></a>
289                                                     <input type="text" name="qty" id="qty" maxlength="12" value="<?php echo ($this->getMinimalQty($_product)?$this->getMinimalQty($_product):1) ?>" title="<?php /* @escapeNotVerified */ echo __('Qty') ?>" class="input-text qty" data-validate="<?php echo $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"/> 586                                                   <input type="text" name="qty" id="qty" maxlength="12" value="<?php echo ($this->getMinimalQty($_product)?$this->getMinimalQty($_product):1) ?>" title="<?php /* @escapeNotVerified */ echo __('Qty') ?>" class="input-text qty" data-validate="<?php echo $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"/>
290                                                     <a href="javascript:void(0)" class="qtyplus"><i class="porto-icon-plus"></i></a> 587                                                   <a href="javascript:void(0)" class="qtyplus"><i class="porto-icon-plus"></i></a>
291                                                 </div> 588                                               </div>
292                                             <?php endif;?> 589                                           <?php endif;?>
293                                             <?php echo $block->getBlockHtml('formkey')?> 590                                           <?php echo $block->getBlockHtml('formkey')?>
294                                             <button type="submit" 591                                           <button type="submit"
295                                                     title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>" 592                                                   title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>"
296                                                     class="action tocart primary"> 593                                                   class="action tocart primary">
297                                                 <span><?php echo __('Add to Cart') ?></span> 594                                               <span><?php echo __('Add to Cart') ?></span>
298                                             </button> 595                                           </button>
299                                         </form> 596                                       </form>
300                                     <?php else: ?> 597                                   <?php else: ?>
301                                         <?php if ($_product->getIsSalable()): ?> 598                                       <?php if ($_product->getIsSalable()): ?>
302                                             <div class="stock available"><span><?php echo __('In stock') ?></span></div> 599                                           <div class="stock available"><span><?php echo __('In stock') ?></span></div>
303                                         <?php else: ?> 600                                       <?php else: ?>
304                                             <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div> 601                                           <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div>
305                                         <?php endif; ?> 602                                       <?php endif; ?>
306                                     <?php endif; ?> 603                                   <?php endif; ?>
307                                 </div> 604                               </div>
308                                 <?php if ($block->getMode() == 'grid'
): ?>
 605                               <?php if ($block->getMode() == 'grid' && $product_type != '17' && $product_type != '19'): ?>
309                                 <?php if($_category_config['addtowishlist'] && $product_type == 4): ?> 606                               <?php if($_category_config['addtowishlist'] && $product_type == 4): ?>
310                                 <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> 607                               <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?>
311                                     <a href="#" 608                                   <a href="#"
312                                        class="action towishlist actions-secondary" 609                                      class="action towishlist actions-secondary"
313                                        title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 610                                      title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
314                                        aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 611                                      aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
315                                        data-post='<?php echo $block->getAddToWishlistParams($_product); ?>' 612                                      data-post='<?php echo $block->getAddToWishlistParams($_product); ?>'
316                                        data-action="add-to-wishlist" 613                                      data-action="add-to-wishlist"
317                                        role="button"> 614                                      role="button">
318                                         <span><?php echo __('Add to Wish List') ?></span> 615                                       <span><?php echo __('Add to Wish List') ?></span>
319                                     </a> 616                                   </a>
320                                 <?php endif; ?> 617                               <?php endif; ?>
321                                 <?php endif; ?> 618                               <?php endif; ?>
322                                 <?php endif; ?> 619                               <?php endif; ?>
323                                 <?php if($_category_config['addtocompare']
): ?>
 620                               <?php if($_category_config['addtocompare'] && $product_type != '17' && $product_type != '19'): ?>
324                                 <?php 621                               <?php
325                                 $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare'); 622                               $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare');
326                                 ?> 623                               ?>
327                                 <a href="#" 624                               <a href="#"
328                                    class="action tocompare actions-secondary" 625                                  class="action tocompare actions-secondary"
329                                    title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 626                                  title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
330                                    aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 627                                  aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
331                                    data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>' 628                                  data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>'
332                                    role="button"> 629                                  role="button">
333                                     <span><?php echo __('Add to Compare') ?></span> 630                                   <span><?php echo __('Add to Compare') ?></span>
334                                 </a> 631                               </a>
335                                 <?php endif; ?> 632                               <?php endif; ?>
336                             </div> 633                           </div>
337                         </div> 634                         </div>
338                         <?php endif; ?> 635                         <?php endif; ?>
339                     </div> 636                     </div>
    637                     <?php endif;?>
    638                   </div>
340                 </div> 639                 </div>
341                 <?php echo($iterator == count($_productCollection)+1) ? '</li>' : '' ?> 640                 <?php echo($iterator == count($_productCollection)+1) ? '</li>' : '' ?>
342             <?php endforeach; ?> 641             <?php endforeach; ?>
343         </ol> 642         </ol>
344     </div> 643     </div>
345     <?= $block->getPagerHtml() ?> 644     <?= $block->getPagerHtml() ?>
346     <?php if (!$_dailydealhelper->isLoadedTimer()): ?> 645     <?php if (!$_dailydealhelper->isLoadedTimer()): ?>
347     <script type="text/javascript"> 646     <script type="text/javascript">
348     require([ 647     require([
349         'jquery' 648         'jquery'
350     ], function ($) { 649     ], function ($) {
351     // Timer for LEFT time for Dailydeal product 650     // Timer for LEFT time for Dailydeal product
352         var _second = 1000; 651         var _second = 1000;
353         var _minute = _second * 60; 652         var _minute = _second * 60;
354         var _hour = _minute * 60; 653         var _hour = _minute * 60;
355         var _day = _hour * 24; 654         var _day = _hour * 24;
356         var timer; 655         var timer;
357  656 
358         //Set date as magentodatetime 657         //Set date as magentodatetime
359         var date = new Date('<?php echo $_dailydealhelper->getcurrentDate() ?>'); 658         var date = new Date('<?php echo $_dailydealhelper->getcurrentDate() ?>');
360         var l_date = new Date(); 659         var l_date = new Date();
361         var offset_date = l_date - date; 660         var offset_date = l_date - date;
362  661 
363         function showRemaining() 662         function showRemaining()
364         { 663         {
365             $(".sw-dailydeal-wrapper").each(function(){ 664             $(".sw-dailydeal-wrapper").each(function(){
366                 var unique_id = $(this).attr("data-unique-id"); 665                 var unique_id = $(this).attr("data-unique-id");
367                 // get Value of dailydeal product 666                 // get Value of dailydeal product
368                 var cid='countdown_'+unique_id; 667                 var cid='countdown_'+unique_id;
369                 var daysid='countdown_days_'+unique_id; 668                 var daysid='countdown_days_'+unique_id;
370                 var hoursid='countdown_hours_'+unique_id; 669                 var hoursid='countdown_hours_'+unique_id;
371                 var minutesid='countdown_minutes_'+unique_id; 670                 var minutesid='countdown_minutes_'+unique_id;
372                 var secondsid='countdown_seconds_'+unique_id; 671                 var secondsid='countdown_seconds_'+unique_id;
373  672 
374                 var startdateid='fromdate_'+unique_id; 673                 var startdateid='fromdate_'+unique_id;
375                 var id='todate_'+unique_id; 674                 var id='todate_'+unique_id;
376  675 
377                 var enddate = new Date($('#'+id).val()); 676                 var enddate = new Date($('#'+id).val());
378                 var dealstartdate=new Date($('#'+startdateid).val()); 677                 var dealstartdate=new Date($('#'+startdateid).val());
379  678 
380                 var currentdate=new Date(); 679                 var currentdate=new Date();
381  680 
382                 //Get Difference between Two dates 681                 //Get Difference between Two dates
383                 var distance = enddate - (currentdate - offset_date); 682                 var distance = enddate - (currentdate - offset_date);
384  683 
385                 $('.sw-dailydeal-wrapper').show(); 684                 $('.sw-dailydeal-wrapper').show();
386  685 
387                 if (distance < 0) { 686                 if (distance < 0) {
388                    // clearInterval(timer); 687                    // clearInterval(timer);
389                     $('#expired_'+unique_id).html("<span style='font-size:25px; color:#000;'>EXPIRED!<span>"); 688                     $('#expired_'+unique_id).html("<span style='font-size:25px; color:#000;'>EXPIRED!<span>");
390  689 
391                 } else if(dealstartdate > currentdate) { 690                 } else if(dealstartdate > currentdate) {
392                    $('.countdowncontainer_'+unique_id).hide(); 691                    $('.countdowncontainer_'+unique_id).hide();
393                    var msg="<span style='font-size:15px; color:#000;'> Coming Soon..<br>Deal Start at:<br>"+$('#'+startdateid).val()+"<span>"; 692                    var msg="<span style='font-size:15px; color:#000;'> Coming Soon..<br>Deal Start at:<br>"+$('#'+startdateid).val()+"<span>";
394                    $('#expired_'+unique_id).html(msg); 693                    $('#expired_'+unique_id).html(msg);
395                 } else { 694                 } else {
396                     var days = Math.floor(distance / _day); 695                     var days = Math.floor(distance / _day);
397                     var hours = Math.floor((distance % _day) / _hour); 696                     var hours = Math.floor((distance % _day) / _hour);
398                     var minutes = Math.floor((distance % _hour) / _minute); 697                     var minutes = Math.floor((distance % _hour) / _minute);
399                     var seconds = Math.floor((distance % _minute) / _second); 698                     var seconds = Math.floor((distance % _minute) / _second);
400  699 
401                     if(hours < 10) 700                     if(hours < 10)
402                         hours = "0" + hours; 701                         hours = "0" + hours;
403                     if(minutes < 10) 702                     if(minutes < 10)
404                         minutes = "0" + minutes; 703                         minutes = "0" + minutes;
405                     if(seconds < 10) 704                     if(seconds < 10)
406                         seconds = "0" + seconds; 705                         seconds = "0" + seconds;
407                     $('.countdowncontainer_'+unique_id).show(); 706                     $('.countdowncontainer_'+unique_id).show();
408                     $('#'+daysid).html(days); 707                     $('#'+daysid).html(days);
409                     $('#'+hoursid).html(hours); 708                     $('#'+hoursid).html(hours);
410                     $('#'+minutesid).html(minutes); 709                     $('#'+minutesid).html(minutes);
411                     $('#'+secondsid).html(seconds); 710                     $('#'+secondsid).html(seconds);
412                 } 711                 }
413             }); 712             });
414         } 713         }
415  714 
416         // Set Interval 715         // Set Interval
417         timer = setInterval(function() 716         timer = setInterval(function()
418         { 717         {
419             showRemaining(); 718             showRemaining();
420         }, 1000); 719         }, 1000);
421     }); 720     });
422     </script> 721     </script>
423     <?php $_dailydealhelper->setLoadedTimer(); ?> 722     <?php $_dailydealhelper->setLoadedTimer(); ?>
424     <?php endif; ?> 723     <?php endif; ?>
425     <script type="text/javascript"> 724     <script type="text/javascript">
426         require([ 725         require([
427             'jquery', 726             'jquery',
428             'Smartwave_Filterproducts/js/lazyload/jquery.lazyload' 727             'Smartwave_Filterproducts/js/lazyload/jquery.lazyload'
429         ], function ($) { 728         ], function ($) {
    729             <?php if($product_type == '20'){?>
    730               window.setTimeout(function(){
    731                 $( '.product-item-info .effect-bhesfd' ).each( function() {
    732                     var $item = $( this ),
    733                         $detail = $item.find( '.product-item-details .product-item-inner' ),
    734                         height = $item.height() + $detail.height() + 32;
    735                     $item.find( '>.content-shadow' ).height( height );
    736                     $( window ).on( 'resize', function() {
    737                         $detail = $item.find( '.product-item-details .product-item-inner' );
    738                         height = $item.height() + $detail.height() + 32;
    739                         $item.find('>.content-shadow').height( height );
    740                     } );
    741                 });
    742               },500);
    743             <?php }?>
430             $("img.porto-lazyload:not(.porto-lazyload-loaded)").lazyload({effect:"fadeIn", effect_speed: 400 }); 744             $("img.porto-lazyload:not(.porto-lazyload-loaded)").lazyload({effect:"fadeIn", effect_speed: 400 });
431             $('.products.grid .product-items.filterproducts li.product-item:nth-child(2n)').addClass('nth-child-2n'); 745             $('.products.grid .product-items.filterproducts li.product-item:nth-child(2n)').addClass('nth-child-2n');
432             $('.products.grid .product-items.filterproducts li.product-item:nth-child(2n+1)').addClass('nth-child-2np1'); 746             $('.products.grid .product-items.filterproducts li.product-item:nth-child(2n+1)').addClass('nth-child-2np1');
433             $('.products.grid .product-items.filterproducts li.product-item:nth-child(3n)').addClass('nth-child-3n'); 747             $('.products.grid .product-items.filterproducts li.product-item:nth-child(3n)').addClass('nth-child-3n');
434             $('.products.grid .product-items.filterproducts li.product-item:nth-child(3n+1)').addClass('nth-child-3np1'); 748             $('.products.grid .product-items.filterproducts li.product-item:nth-child(3n+1)').addClass('nth-child-3np1');
435             $('.products.grid .product-items.filterproducts li.product-item:nth-child(4n)').addClass('nth-child-4n'); 749             $('.products.grid .product-items.filterproducts li.product-item:nth-child(4n)').addClass('nth-child-4n');
436             $('.products.grid .product-items.filterproducts li.product-item:nth-child(4n+1)').addClass('nth-child-4np1'); 750             $('.products.grid .product-items.filterproducts li.product-item:nth-child(4n+1)').addClass('nth-child-4np1');
437             $('.products.grid .product-items.filterproducts li.product-item:nth-child(5n)').addClass('nth-child-5n'); 751             $('.products.grid .product-items.filterproducts li.product-item:nth-child(5n)').addClass('nth-child-5n');
438             $('.products.grid .product-items.filterproducts li.product-item:nth-child(5n+1)').addClass('nth-child-5np1'); 752             $('.products.grid .product-items.filterproducts li.product-item:nth-child(5n+1)').addClass('nth-child-5np1');
439             $('.products.grid .product-items.filterproducts li.product-item:nth-child(6n)').addClass('nth-child-6n'); 753             $('.products.grid .product-items.filterproducts li.product-item:nth-child(6n)').addClass('nth-child-6n');
440             $('.products.grid .product-items.filterproducts li.product-item:nth-child(6n+1)').addClass('nth-child-6np1'); 754             $('.products.grid .product-items.filterproducts li.product-item:nth-child(6n+1)').addClass('nth-child-6np1');
441             $('.products.grid .product-items.filterproducts li.product-item:nth-child(7n)').addClass('nth-child-7n'); 755             $('.products.grid .product-items.filterproducts li.product-item:nth-child(7n)').addClass('nth-child-7n');
442             $('.products.grid .product-items.filterproducts li.product-item:nth-child(7n+1)').addClass('nth-child-7np1'); 756             $('.products.grid .product-items.filterproducts li.product-item:nth-child(7n+1)').addClass('nth-child-7np1');
443             $('.products.grid .product-items.filterproducts li.product-item:nth-child(8n)').addClass('nth-child-8n'); 757             $('.products.grid .product-items.filterproducts li.product-item:nth-child(8n)').addClass('nth-child-8n');
444             $('.products.grid .product-items.filterproducts li.product-item:nth-child(8n+1)').addClass('nth-child-8np1'); 758             $('.products.grid .product-items.filterproducts li.product-item:nth-child(8n+1)').addClass('nth-child-8np1');
445         }); 759         });
446     </script> 760     </script>
447     <?php if (!$block->isRedirectToCartEnabled()) : ?> 761     <?php if (!$block->isRedirectToCartEnabled()) : ?>
448         <script type="text/x-magento-init"> 762         <script type="text/x-magento-init">
449         { 763         {
450             "[data-role=tocart-form], .form.map.checkout": { 764             "[data-role=tocart-form], .form.map.checkout": {
451                 "catalogAddToCart": {} 765                 "catalogAddToCart": {}
452             } 766             }
453         } 767         }
454         </script> 768         </script>
455     <?php endif; ?> 769     <?php endif; ?>
456 <?php endif; ?> 770 <?php endif; ?>